﻿package org.atk.icons {
	import org.aswing.AssetIcon;
	import org.aswing.AttachIcon;
	/**
	 * ...
	 * @author AeTky
	 */
	public class MyIcons {
		[Embed(source = "003.png")]
		public var mail:Class;		
		[Embed(source = "029.png")]
		public var phone:Class;
		public function MyIcons() {
			
		}
		private static var instance:MyIcons=null;
		static public function create():void {
			if(instance==null)
				instance = new MyIcons();
		}
		static public function getIcon(Name:String):AssetIcon {
			create();
			try {
				var iconStr:String = "org.atk.icons.MyIcons_" + Name;
				return new AttachIcon(iconStr);
			}catch (ex:*) {
				
			}
			return null;
		}
	}
	
}